TQADrawTriTexture
A drawing engine may define a method to draw texture-mapped triangles. This method is optional and must be supported only by drawing engines that support texture mapping.
typedef void (*TQADrawTriTexture) ( const TQADrawContext *drawContext, const TQAVTexture *v0, const TQAVTexture *v1, const TQAVTexture *v2, unsigned long flags);
drawContext
- A draw context.
v0
- A texture vertex.
v1
- A texture vertex.
v2
- A texture vertex.
flags
- A set of triangle flags. See "Triangle Flags Masks," beginning on page 1-63 for a complete description of the available flags.
DESCRIPTION
YourTQADrawTriTexture
function should draw the texture-mapped triangle determined by the three points specified by thev0
,v1
, andv2
parameters into the draw context specified by thedrawContext
parameter. The texture used for the mapping is determined by the value of thekQATag_Texture
state variable. Features of the triangle are determined by theflags
parameter. Currently, this parameter is used to specify an orientation for the triangle.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help